<template>
  <view>
    <view class="good-item">
      <!-- 左侧盒子 -->
      <view class="good-item-left">
        <!--  没有得话就用默认图片  -->
        <!-- <image :src="good.goods_big_logo || defaultimg" mode=""></image> -->
		<image src="../../static/login.jpg"></image>
      </view>
      <!-- 右侧盒子 -->
      <view class="good-item-right">
        <view class="good-item-name">清明前红茶</view>
        <view class="good-item-info">
          <view class="good-price">￥ 347</view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name: "my-goods",
    props: {
      good: {
        type: Object,
        default: {}
      }
    },
    data() {
      return {
        // 默认图片
        defaultimg: "https://ts1.cn.mm.bing.net/th/id/R-C.e74289455bec048b0ba2feb90e3b74f2?rik=fYpAtit%2bc2W4ZA&riu=http%3a%2f%2fimage.woshipm.com%2fwp-files%2f2017%2f04%2ftAd0ldHk60s3GAI6TNqd.jpg&ehk=RWuC%2f9spxWPWcW3w4axPrb3YP9Nt3JXlajvJWKRXV5k%3d&risl=&pid=ImgRaw&r=0"
      };
    }
  }
</script>

<style lang="scss">
  .good-item {
    display: flex;
    border-bottom: 2px solid #f1f1f1;

    .good-item-left {
      image {
        height: 200rpx;
        width: 200rpx;
        display: block;
      }

      padding: 20rpx;
    }

    .good-item-right {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 20rpx;

      .good-item-name {
        font-size: 14px;

      }

      .good-item-info {
        .good-price {
          font-size: 16px;
          color: #c00000;
        }
      }
    }
  }
</style>

